package pikes.peak;

import java.util.HashMap;
import java.util.Map;

import org.junit.Assert;
import org.junit.Test;
import org.springframework.web.servlet.theme.CookieThemeResolver;

import pikes.peak.CookieThemeURIParameter;

public class CookieThemeURIParameterTestCase {

	@Test
	public void simple() throws Exception {
		CookieThemeURIParameter ctu = new CookieThemeURIParameter("spring");

		Map<CharSequence, CharSequence> parameters = new HashMap<CharSequence, CharSequence>();

		ctu.build(parameters);

		Assert.assertEquals("spring", parameters.get(CookieThemeResolver.ORIGINAL_DEFAULT_THEME_NAME));
	}
}
